package com.bitejiuyeke.job_publish.controller.params;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * @Author 比特就业课
 */
@Data
@Component
public class VerificationCodeDTO {

    @NotBlank(message = "电话号码或邮箱地址不能为空")
    private String targetNum;

    @NotNull(message = "验证码类型不能为空")
    @Min(value = 0,message = "验证码类型不正确")
    @Max(value = 2, message = "验证码类型不正确")
    private Integer type;
}
